<template>

    <div class="box">
        <div class="header">
            <form action="/">
                <van-search  show-action placeholder="请输入搜索关键词" />
            </form>
            <van-swipe :autoplay="3000" lazy-render>
                <van-swipe-item v-for="image in images" :key="image">
                    <img :src="image" />
                </van-swipe-item>
            </van-swipe>
        </div>
        <div class="meddol">
            
        </div>
    </div>
</template>
<script setup>
import { ref } from 'vue';
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
];
</script>

<style>
* {
    padding: 0;
    margin: 0;
    list-style: none;
}

.header {
    width: 100%;
    height: 300px;
}

.header img {
    width: 100%;
    height: 300px;
}
</style>